package com.finger.eduservice.client;

import com.finger.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component   // 微服务名称        // VodFileDegradeFeignClient 熔断器机制
@FeignClient(name="service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
    @DeleteMapping("/eduvod/filevod/deleteVod/{videoId}")
    public R deleteVod(@PathVariable String videoId);
    @DeleteMapping("/eduvod/filevod/deleteVodBatch")
    public R deleteBatch(@RequestParam("ids") List<String> ids);

}
